package vip.finance.makemoney.controller;

import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.finance.makemoney.common.WebJson;
import vip.finance.makemoney.service.ETFService;

/**
 * @author yangbin
 * @since 2023-03-05
 */
@RestController
@RequestMapping("/etf")
public class EtfController extends BaseController {
    @Resource
    private ETFService etfService;

    //etf列表
    @GetMapping("/etfList")
    public WebJson<Object> etfList() {
        return WebJson.success(etfService.etfList());
    }
}
